package com.itheima.Operator;

import java.util.Scanner;

/*键盘录入学生考试成绩,根据成绩程序给出不同的奖励
* 95-100自行车一辆
90-94游乐场
80-89 变形金刚一个
* 80以下 挨顿揍
* */
public class Opp04 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入您的成绩:");
        int score = sc.nextInt();

        if (score >= 0 && score <= 100) {
            if (score >= 95 && score <= 100) {
                System.out.println("奖励自行车一辆");
            } else if (score >= 90 && score <= 94) {
                System.out.println("游乐场");
            } else if (score >= 80 && score <= 89) {
                System.out.println("变形金刚一个");
            } else if (score < 80) {
                System.out.println("挨一顿揍");
            }
        } else {
            System.out.println("您的输入有误!");
        }

    }
}
